<?php
class GridListControl extends GridControl
{
    protected $cssClass = 'gridcontrol hashable select';
    protected $fieldselect;

    public function GridListControl($view_name, $name = null, $fieldselect = null)
    {
        $this->fieldselect = $fieldselect;
        parent::__construct($view_name, $name);
    }

    public function Render()
    {
        parent::Render();
        return $this->Replace('fieldselect', $this->fieldselect);
    }

    public function RenderStub()
    {
        $refresh_url = $this->GetRefreshUrl();
        $js = $this->GetJsScript();
        return "<div class='stub {$this->cssClass}' id='{$this->name}' url='$refresh_url'></div>$js";
    }
}
?>